package com.example.transaction.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author zh
 * @since 2023-06-25
 */
@TableName("loginlog")
public class LoginLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "LoginLogID", type = IdType.AUTO)
    private Integer loginLogID;

    @TableField("UserID")
    private Integer userID;

    @TableField("LoginTime")
    private LocalDateTime loginTime;

    @TableField("IP")
    private String ip;

    @TableField("OS")
    private String os;

    @TableField("browser")
    private String browser;

    @TableField("deleted")
    private Integer deleted;

    public Integer getLoginLogID() {
        return loginLogID;
    }

    public void setLoginLogID(Integer loginLogID) {
        this.loginLogID = loginLogID;
    }
    public Integer getUserID() {
        return userID;
    }

    public void setUserID(Integer userID) {
        this.userID = userID;
    }
    public LocalDateTime getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(LocalDateTime loginTime) {
        this.loginTime = loginTime;
    }
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
    public String getOs() {
        return os;
    }

    public void setOs(String os) {
        this.os = os;
    }
    public String getBrowser() {
        return browser;
    }

    public void setBrowser(String browser) {
        this.browser = browser;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return "LoginLog{" +
                "loginLogID=" + loginLogID +
                ", userID=" + userID +
                ", loginTime=" + loginTime +
                ", ip='" + ip + '\'' +
                ", os='" + os + '\'' +
                ", browser='" + browser + '\'' +
                ", deleted=" + deleted +
                '}';
    }

    public void setUsername(String username) {
    }
}
